package org.itboys.product.search;


public class ProductSearchDoc {

    /**
     * see solr/product schema.xml
     */
    public static final String FIELD_PRODUCT_NAME = "product_name";

    public static final String FIELD_PRODUCT_ID = "id";

    public static final String FIELD_CATEGORY_FULL_ID = "category_full_id";

    public static final String FIELD_SHOP_ID = "shopId";

    public static final String FIELD_BRAND_ID = "brandId";

    public static final String FIELD_PRICE = "price";

    /**
     *  商品名称索引 将商品名称 标签 品牌名称 分类名称 合成一个字符串
     */
    private String productName;

    /**
     * 店铺ID
     */
    private long shopId;

    /**
     * 分类全路径
     */
    private String categoryFullIdPath;

    /**
     * 商品ID
     */
    private long productId;

    /**
     * 品牌ID
     */
    private long brandId;

    /**
     * 商品售价
     */
    private int price;


    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public long getShopId() {
        return shopId;
    }

    public void setShopId(long shopId) {
        this.shopId = shopId;
    }

    public String getCategoryFullIdPath() {
        return categoryFullIdPath;
    }

    public void setCategoryFullIdPath(String categoryFullIdPath) {
        this.categoryFullIdPath = categoryFullIdPath;
    }

    public long getProductId() {
        return productId;
    }

    public void setProductId(long productId) {
        this.productId = productId;
    }

    public long getBrandId() {
        return brandId;
    }

    public void setBrandId(long brandId) {
        this.brandId = brandId;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }
}
